package designPattern.prototype;


/**
 * Created by cdxuhongya on 2017/1/6.
 */
public class Prototype implements Cloneable{

    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    protected Object clone(){
        try {
            return super.clone();
        }catch (Exception ex){
            ex.printStackTrace();
            return null;
        }
    }
}
